package com.evil.kingdom.controller.base;

import com.evil.common.core.entity.R;
import com.evil.kingdom.pojo.entity.person.base.Person;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 个人中心
 *
 * @author liyang
 * @date 2024-05-25 19:00
 */
@Slf4j
@RestController
@AllArgsConstructor
@RequestMapping("/center")
public class CenterController {

    /**
     * 用户信息
     *
     * @return R
     */
    @RequestMapping("/detail")
    public R<?> center() {
        return R.success(new Person("LY", 28));
    }
}
